<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php
	
	JToolBarHelper::title(JText::_('Quản lý Thông tin chung').': <small><small>[Sửa]</small></small>' );
	JToolBarHelper::save();
	JToolBarHelper::cancel();
	
	$editor =& JFactory::getEditor();
	JHTML::_('behavior.calendar');
?>
<script language="javascript" type="text/javascript">
	function submitbutton(pressbutton) {
		var form = document.adminForm;
		if (pressbutton == 'cancel') {
			submitform( pressbutton );
			return;
		}		 
		else {
			submitform( pressbutton );
		}
	}
</script>
<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">

<fieldset class="adminform">
    <legend><?php echo JText::_( 'Chi tiết' ); ?></legend>
    <table class="admintable">
    <tr><td colspan="1"><hr/></td></tr>    
    <tr>
        <td align="right" class="key" valign="top" width="100">Thông tin liên hệ:</td>
        <td><?php echo $editor->display('text',$this->detail->text,'300','250','','');?></td>
    </tr>
	 <tr>
        <td align="right" class="key" valign="top" width="100">Email liên hệ:</td>
        <td><input name="email" value="<?php echo $this->detail->email?>" size="80" /></td>
    </tr>
    <tr>
        <td align="right" class="key" valign="top" width="100">Địa chỉ:</td>
        <td><input name="address" value="<?php echo $this->detail->address?>" size="80" /></td>
    </tr>
     <tr>
        <td align="right" class="key" valign="top" width="100">Điện thoại:</td>
        <td><input name="telephone" value="<?php echo $this->detail->telephone?>" size="80" /></td>
    </tr>     
    <tr>
        <td align="right" class="key" valign="top" width="100">Website: &nbsp;&nbsp; http://</td>
        <td><input name="website" value="<?php echo $this->detail->website?>" size="80" /><small>&nbsp; (ví dụ:  abc.com hoặc www.abc.com)</small></td>
    </tr>    
    <tr>
        <td align="right" class="key" valign="top">Footer:</td>
        <td><?php echo $editor->display('footer',$this->detail->footer,'500','250','','');?></td>
    </tr> 
    <tr><td colspan="1"><hr/></td></tr> 
    <tr>
        <td width="100" align="right" class="key">
            <label for="title">
                <?php echo JText::_( 'Banner' ); ?>:
            </label>
        </td>
        <td>
        	<?php if($this->detail->banner){?>
            <img src="../uploads/banner/<?php echo $this->detail->banner;?>" alt="<?php echo $this->detail->banner;?>" width="100"/><br />
            <?php }?>
            <input class="text_area" type="file" name="banner" id="banner" size="80" maxlength="250" />
        </td>
    </tr> 
    <tr>
        <td align="right" class="key" valign="top" width="100">Link Banner:</td>
        <td><input name="linkbanner" value="<?php echo $this->detail->linkbanner?>" size="80" /></td>
    </tr> 
    <?php /*?><tr>
        <td valign="top" align="right" class="key">
            <?php echo JText::_( 'Bật/tắt quảng cáo' ); ?>:
        </td>
        <td>
            <?php echo $this->lists['published']; ?>
        </td>
	</tr> <?php */?>
  
     <tr>
        <td width="100" align="right" class="key">
            <label for="title">
                <?php echo JText::_( 'Hình nền web' ); ?>:
            </label>
        </td>
        <td>
        	<?php if($this->detail->background){?>
            <img src="../uploads/banner/<?php echo $this->detail->background;?>" alt="<?php echo $this->detail->background;?>" width="100"/><br />
            <?php }?>
            <input class="text_area" type="file" name="background" id="background" size="80" maxlength="250" />
        </td>
    </tr> 
    <tr>
        <td width="100" align="right" class="key">
            <label for="title">
                <?php echo JText::_( 'Logo phải' ); ?>:
            </label>
        </td>
        <td>
        	<?php if($this->detail->logoright){?>
            <img src="../uploads/banner/<?php echo $this->detail->logoright;?>" alt="<?php echo $this->detail->logoright;?>" width="100"/><br />
            <?php }?>
            <input class="text_area" type="file" name="logoright" id="logoright" size="80" maxlength="250" />
        </td>
    </tr> 
    <tr>
        <td width="100" align="right" class="key">
            <label for="title">
                <?php echo JText::_( 'Logo trái' ); ?>:
            </label>
        </td>
        <td>
        	<?php if($this->detail->logoleft){?>
            <img src="../uploads/banner/<?php echo $this->detail->logoleft;?>" alt="<?php echo $this->detail->logoleft;?>" width="100"/><br />
            <?php }?>
            <input class="text_area" type="file" name="logoleft" id="logoleft" size="80" maxlength="250" />
        </td>
    </tr> 
    </table>
</fieldset>

<input type="hidden" name="option" value="com_qlchung" />
<input type="hidden" name="id" value="<?php echo $this->detail->id; ?>" />
<input type="hidden" name="task" value="" />
</form>